//
//  YDVerticalDetailIntroductionCell.m
//  PeiZiWangBei
//
//  Created by LK-IOS on 2018/1/9.
//  Copyright © 2018年 LK-IOS. All rights reserved.
//

#import "YDVerticalDetailIntroductionCell.h"
#import "YDSingleStockIntroductionModel.h"

@interface YDVerticalDetailIntroductionCell()
//分割线
@property (nonatomic , weak) UIView *lineView;
//公司名称
//注册资本
//上市时间
//发行价格
//公司地址
//公司简介
//经营范围
//
@property (nonatomic , weak) UILabel *gsmc;
@property (nonatomic , weak) UILabel *gsmcl;
//注册资本
//
@property (nonatomic , weak) UILabel *zczb;
@property (nonatomic , weak) UILabel *zczbl;
//上市时间
//
@property (nonatomic , weak) UILabel *sssj;
@property (nonatomic , weak) UILabel *sssjl;
//发行价格
//
@property (nonatomic , weak) UILabel *fxjg;
@property (nonatomic , weak) UILabel *fxjgl;
//公司地址
//
@property (nonatomic , weak) UILabel *gsdz;
@property (nonatomic , weak) UILabel *gsdzl;
//公司简介
//
@property (nonatomic , weak) UILabel *gsjj;
@property (nonatomic , weak) UILabel *gsjjl;
//经营范围
//
@property (nonatomic , weak) UILabel *jyfw;
@property (nonatomic , weak) UILabel *jyfwl;

@end

@implementation YDVerticalDetailIntroductionCell

-(void)setModel:(YDSingleStockIntroductionModel *)model
{
    _model = model;
     //公司名称
    self.gsmc.text = model.gsmcString;
    self.gsmcl.text = model.companyNameString;
    self.gsmc.frame = model.gsmcStringFrame;
    self.gsmcl.frame = model.companyNameFrame;
     //注册资本
    self.zczb.text = model.zczbString;
    self.zczbl.text = model.zhucezibenString;
    self.zczb.frame = model.zczbStringFrame;
    self.zczbl.frame = model.zhucezibenFrame;
     //上市时间
    self.sssj.text = model.sssjString;
    self.sssjl.text = model.shangshiriqiString;
    self.sssj.frame = model.sssjStringFrame;
    self.sssjl.frame = model.shangshiriqiFrame;
     //发行价格
    self.fxjg.text = model.fxjgString;
    self.fxjgl.text = model.faxingjiageString;
    self.fxjg.frame = model.fxjgStringFrame;
    self.fxjgl.frame = model.faxingjiageFrame;
     //公司地址
    self.gsdz.text = model.gsdzString;
    self.gsdzl.text = model.bangongdizhiString;
    self.gsdz.frame = model.gsdzStringFrame;
    self.gsdzl.frame = model.bangongdizhiFrame;
     //公司简介
    self.gsjj.text = model.gsjjString;
    self.gsjjl.text = model.gongsijianjieString;
    self.gsjj.frame = model.gsjjStringFrame;
    self.gsjjl.frame = model.gongsijianjieFrame;
     //经营范围
    self.jyfw.text = model.jyfwString;
    self.jyfwl.text = model.jingyingfanweiString;
    self.jyfw.frame = model.jyfwStringFrame;
    self.jyfwl.frame = model.jingyingfanweiFrame;
    
    
}

+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *verticalDetailIntroductionCell = @"YDVerticalDetailIntroductionCell";
    YDVerticalDetailIntroductionCell *cell = [tableView dequeueReusableCellWithIdentifier:verticalDetailIntroductionCell];
    if (cell == nil) {
        cell = [[YDVerticalDetailIntroductionCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:verticalDetailIntroductionCell];
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return cell;
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.contentView.backgroundColor = [UIColor whiteColor];
        self.backgroundColor = [UIColor whiteColor];
        [self lineView];
        //公司名称
        [self gsmc];
        [self gsmcl];
        //注册资本
        [self zczb];
        [self zczbl];
        //上市时间
        [self sssj];
        [self sssjl];
        //发行价格
        [self fxjg];
        [self fxjgl];
        //公司地址
        [self gsdz];
        [self gsdzl];
        //公司简介
        [self gsjj];
        [self gsjjl];
        //经营范围
        [self jyfw];
        [self jyfwl];
    }
    return self;
}

-(UIView *)lineView
{
    if (_lineView == nil) {
        UIView *lineView = [[UIView alloc] init];
        [self.contentView addSubview:lineView];
        lineView.backgroundColor = [UIColor colorWithHexString:mainGray];
        [lineView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.bottom.equalTo(self);
            make.height.equalTo(@1);
        }];
        _lineView = lineView;
    }
    return _lineView;
}

-(UILabel *)gsmc
{
    if (_gsmc == nil) {
        UILabel *gsmc = [[UILabel alloc] init];
        [self.contentView addSubview:gsmc];
        gsmc.textColor = [UIColor colorWithHexString:blueyGrey];
        gsmc.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        gsmc.textAlignment = NSTextAlignmentLeft;
        gsmc.numberOfLines = 1;
        _gsmc = gsmc;
    }
    return _gsmc;
}
-(UILabel *)gsmcl
{
    if (_gsmcl == nil) {
        UILabel *gsmcl = [[UILabel alloc] init];
        [self.contentView addSubview:gsmcl];
        gsmcl.textColor = [UIColor colorWithHexString:dark];
        gsmcl.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        gsmcl.textAlignment = NSTextAlignmentLeft;
        gsmcl.numberOfLines = 0;
        _gsmcl = gsmcl;
    }
    return _gsmcl;
}

-(UILabel *)zczb
{
    if (_zczb == nil) {
        UILabel *zczb = [[UILabel alloc] init];
        [self.contentView addSubview:zczb];
        zczb.textColor = [UIColor colorWithHexString:blueyGrey];
        zczb.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        zczb.textAlignment = NSTextAlignmentLeft;
        zczb.numberOfLines = 1;
        _zczb = zczb;
    }
    return _zczb;
}
-(UILabel *)zczbl
{
    if (_zczbl == nil) {
        UILabel *zczbl = [[UILabel alloc] init];
        [self.contentView addSubview:zczbl];
        zczbl.textColor = [UIColor colorWithHexString:dark];
        zczbl.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        zczbl.textAlignment = NSTextAlignmentLeft;
        zczbl.numberOfLines = 0;
        _zczbl = zczbl;
    }
    return _zczbl;
}

-(UILabel *)sssj
{
    if (_sssj == nil) {
        UILabel *sssj = [[UILabel alloc] init];
        [self.contentView addSubview:sssj];
        sssj.textColor = [UIColor colorWithHexString:blueyGrey];
        sssj.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        sssj.textAlignment = NSTextAlignmentLeft;
        sssj.numberOfLines = 1;
        _sssj = sssj;
    }
    return _sssj;
}
-(UILabel *)sssjl
{
    if (_sssjl == nil) {
        UILabel *sssjl = [[UILabel alloc] init];
        [self.contentView addSubview:sssjl];
        sssjl.textColor = [UIColor colorWithHexString:dark];
        sssjl.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        sssjl.textAlignment = NSTextAlignmentLeft;
        sssjl.numberOfLines = 0;
        _sssjl = sssjl;
    }
    return _sssjl;
}
-(UILabel *)fxjg
{
    if (_fxjg == nil) {
        UILabel *fxjg = [[UILabel alloc] init];
        [self.contentView addSubview:fxjg];
        fxjg.textColor = [UIColor colorWithHexString:blueyGrey];
        fxjg.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        fxjg.textAlignment = NSTextAlignmentLeft;
        fxjg.numberOfLines = 1;
        _fxjg = fxjg;
    }
    return _fxjg;
}
-(UILabel *)fxjgl
{
    if (_fxjgl == nil) {
        UILabel *fxjgl = [[UILabel alloc] init];
        [self.contentView addSubview:fxjgl];
        fxjgl.textColor = [UIColor colorWithHexString:dark];
        fxjgl.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        fxjgl.textAlignment = NSTextAlignmentLeft;
        fxjgl.numberOfLines = 0;
        _fxjgl = fxjgl;
    }
    return _fxjgl;
}
//公司地址
-(UILabel *)gsdz
{
    if (_gsdz == nil) {
        UILabel *gsdz = [[UILabel alloc] init];
        [self.contentView addSubview:gsdz];
        gsdz.textColor = [UIColor colorWithHexString:blueyGrey];
        gsdz.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        gsdz.textAlignment = NSTextAlignmentLeft;
        gsdz.numberOfLines = 1;
        _gsdz = gsdz;
    }
    return _gsdz;
}
-(UILabel *)gsdzl
{
    if (_gsdzl == nil) {
        UILabel *gsdzl = [[UILabel alloc] init];
        [self.contentView addSubview:gsdzl];
        gsdzl.textColor = [UIColor colorWithHexString:dark];
        gsdzl.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        gsdzl.textAlignment = NSTextAlignmentLeft;
        gsdzl.numberOfLines = 0;
        _gsdzl = gsdzl;
    }
    return _gsdzl;
}
//公司简介
-(UILabel *)gsjj
{
    if (_gsjj == nil) {
        UILabel *gsjj = [[UILabel alloc] init];
        [self.contentView addSubview:gsjj];
        gsjj.textColor = [UIColor colorWithHexString:blueyGrey];
        gsjj.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        gsjj.textAlignment = NSTextAlignmentLeft;
        gsjj.numberOfLines = 1;
        _gsjj = gsjj;
    }
    return _gsjj;
}
-(UILabel *)gsjjl
{
    if (_gsjjl == nil) {
        UILabel *gsjjl = [[UILabel alloc] init];
        [self.contentView addSubview:gsjjl];
        gsjjl.textColor = [UIColor colorWithHexString:dark];
        gsjjl.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        gsjjl.textAlignment = NSTextAlignmentLeft;
        gsjjl.numberOfLines = 0;
        _gsjjl = gsjjl;
    }
    return _gsjjl;
}
//经营范围
-(UILabel *)jyfw
{
    if (_jyfw == nil) {
        UILabel *jyfw = [[UILabel alloc] init];
        [self.contentView addSubview:jyfw];
        jyfw.textColor = [UIColor colorWithHexString:blueyGrey];
        jyfw.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        jyfw.textAlignment = NSTextAlignmentLeft;
        jyfw.numberOfLines = 1;
        _jyfw = jyfw;
    }
    return _jyfw;
}
-(UILabel *)jyfwl
{
    if (_jyfwl == nil) {
        UILabel *jyfwl = [[UILabel alloc] init];
        [self.contentView addSubview:jyfwl];
        jyfwl.textColor = [UIColor colorWithHexString:dark];
        jyfwl.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        jyfwl.textAlignment = NSTextAlignmentLeft;
        jyfwl.numberOfLines = 0;
        _jyfwl = jyfwl;
    }
    return _jyfwl;
}


@end
